import request from '@/utils/request'
let baseURL = '/portal-server/v1/api/webBrand'

/**
 * 【品牌分析】下钻页 -- 品牌坪效分析-列表
 */
export const brandFlatEffectListNewApi = (data) => {
	return request({
		url: `${baseURL}/brandFlatEffectListNew`,
		method: 'post',
		data: data
	})
};

/**
 * 品牌坪效分析-业态下拉
 */
export const getFormatDropDownApi = (params) => {
	return request({
		url: `${baseURL}/formatDropDown`,
		method: 'get',
		params,
		neverCancel: true,
	})
};
/**
 * 品牌坪效分析-项目下拉
 */
export const getBrandFlatEffectProjectDropDownApi = (params) => {
	return request({
		url: `${baseURL}/brandFlatEffectProjectDropDown`,
		method: 'get',
		params
	})
};
/**
 * 品牌坪效分析-列表导出
 */
export const brandFlatEffectListExportApi = (data) => {
	return request({
		url: `${baseURL}/brandFlatEffectListExport`,
		method: 'post',
		data,
		responseType: 'blob'
	})
};
/**
 * 品牌坪效分析-详情-品牌下拉
 */
export const brandControlApi = (data) => {
	return request({
		url: `/portal-server/v1/api/brandMonitoring/brandControl`,
		method: 'post',
		data
	})
};
/**
 * 【品牌分析】下钻页 -- 品牌坪效分析-详情
 */
export const brandFlatEffectDetailNewApi = (data) => {
	return request({
		url: `${baseURL}/brandFlatEffectDetailNew`,
		method: 'post',
		data: data
	})
};

/**
 * 品牌坪效分析-明细列表导出
 */
export const brandFlatEffectDetailExportApi = (data) => {
	return request({
		url: `${baseURL}/brandFlatEffectDetailExport`,
		method: 'post',
		data,
		responseType: 'blob'
	})
};